package zero.entity;

/**
 * 符号表项
 * 
 * @author Zero
 *
 */
public class Symbol {
    private String  type;
    private Integer length;
    private Integer addr;

    public Symbol() {

    }

    public Symbol(String type, Integer length, Integer addr) {
        this.type   = type;
        this.length = length;
        this.addr   = addr;
    }

    @Override
    public String toString() {
        return "[type=" + type + ", length=" + length + ", addr=" + addr + "]";
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Integer getAddr() {
        return addr;
    }

    public void setAddr(Integer addr) {
        this.addr = addr;
    }
}
